function alarmListMap(data) {
  // console.log(data)

  // address: "河南省郑州市金水区东风路16号"
  // createBy: null
  // createTime: null
  // deptId: null
  // details: "测试,初始2"
  // direction: "上行"
  // eCreateTime: "2021-04-19 11:23:14"
  // eEndTime: "2021-04-20 11:05:17"
  // eId: "0deead6c-ee65-4ef1-a9de-590729efa237"
  // eStatus: "2"
  // eType: "32"
  // eTypeName: "测试"
  // latitude: "34.79977"
  // longitude: "113.66072"
  // oneself: 0
  // params: { }
  // remark: null
  // sceneList: [{ … }]
  // searchValue: null
  // source: "手工录入"
  // spare: ""
  // spare1: "11"
  // spare2: ""
  // spare3: null
  // spareList: null
  // updateBy: null
  // updateTime: null

  for (let val of data) {
    // 点位
    var point = new BMap.Point(val.longitude, val.latitude)
    // 创建事件图标
    var myIcon = null;

    switch (val.eStatus) {
      case '0':
        myIcon = new BMap.Icon("./Package/images/red.gif", new BMap.Size(20, 20));
        break;
      case '1':
        myIcon = new BMap.Icon("./Package/images/yellow.gif", new BMap.Size(20, 20));
        break;
      case '2':
        myIcon = new BMap.Icon("./Package/images/blue.gif", new BMap.Size(20, 20));
        break;

      default:
        break;
    }

    // 点位
    var marker = new BMap.Marker(point, { icon: myIcon });
    // 覆盖物标识
    marker.init = 'alarmListmap';
    vm.map.addOverlay(marker);

    // 事件标题
    let name = ''
    for (let [key, vals] of Object.entries(vm.EventList)) {
      if (vals.id == val.eType) {
        name = vals.eventName
        break;
      }
    }

    var title = `
          <div style='width: auto; height: 22px; padding: 2px 5px; line-height: 22px; text-align: center;border:6px'>
            ${name}
          </div>
        `
    var Distance = name.length * 10;

    var opts = {
      position: point,    // 指定文本标注所在的地理位置
      offset: new BMap.Size(-Distance, 10)    //设置文本偏移量
    }

    let label = new BMap.Label(title, opts);  // 创建文本标注对象
    label.init = "alarmListmap"
    label.setStyle({
      color: "#000",       //文本颜色
      fontSize: "14px",
      lineHeight: "24px",
      fontFamily: "微软雅黑",
      border: "0",
      borderRadius: '6px'
    });

    if (name) {
      vm.map.addOverlay(label);
    }
    var content = `
          <div class="MonitoringStyEvent">
            <div class="MonitoringStyEvent-title">事件信息</div>
            <div class="MonitoringStyEvent-content">
              <div class="MonitoringStyEvent-text">
                <span>事件标题</span>: <p>${name ? name : ''}</p>
              </div>
              <div class="MonitoringStyEvent-text">
                <span>发生地</span>: <p>${val.address ? val.address : ''}</p>
              </div>
	            <div class="MonitoringStyEvent-text">
	              <span>道路方向</span>: <p>${val.direction ? val.direction : ''}</p>
	            </div>
              <div class="MonitoringStyEvent-text">
                <span>来源</span>: <p>${val.source ? val.source : ''}</p>
              </div>
              <div class="MonitoringStyEvent-text">
                <span>时间</span>: <p>${val.eCreateTime ? val.eCreateTime : ''}</p>
              </div>
              <div class="MonitoringStyEvent-text">
                <span>详情</span>: <p>${val.details ? val.details : ''}</p>
              </div>
              <img class="MonitoringStyEvent-img" src="${urlimgadd(val.spareList)}" alt="暂无图片">
              <div class="EventDetails" onclick="EventDetailsadd()">
                详情
              </div>
            </div>
          </div >
        `
    addClickHandler(content, marker, 'alarmListmap', val, point) // 监控信息窗口
  }

}